
@import "./var.scss";

.#{$namespace}-slider {
  @include flex($align-items: center);
  width: 100%;
  &__feature {
    height: $slider-progress-height;
    background-color: $slider-progress-background-color;
    width: $slider-block-size;
  }

  &__progress {
    flex-grow: 1;
    position: relative;
    height: $slider-block-size;
    @include flex($align-items: center);
    &--stick {
      width: 100%;
    }

    &__button {
      cursor: pointer;
      position: absolute;
      top: 0;
      background-color: $slider-progress-button-background-color;
      border-radius: 50%;
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
      height: $slider-block-size;
      width: $slider-block-size;
    }

    &--active {
      position: absolute;
      left: 0;
      height: $slider-progress-height;
      background-color: $slider-progress-active-background-color;
    }


    &--max {
      position: absolute;
      right: -$slider-block-size;
      height: $slider-progress-height;
      background-color: $slider-progress-max-background-color;
    }

    &--disabled {
      background-color: $slider-progress-disabled-background-color;
    }
  }

  &__value {
    @include flex-no-stretch();
    margin-left: 10px;
    font-size: 14px;
    color: $slider-value-text-color;
  }
}